import request from '@/utils/request'

// 查询群众信息列表
export function listCrowd(query) {
  return request({
    url: '/crowd-user/listPage',
    method: 'get',
    params: query
  })
}

// 查询群众信息详细（根据Id查询单个）
export function getCrowdById(query) {
  return request({
    url: '/crowd-user/selectOne',
    method: 'get',
    params: query,
  })
}

// 导出群众信息
export function exportCrowd(data) {
  return request({
    url: '/crowd-user/exportCrowdExcel',
    method: 'post',
    data: data
  })
}